package com.foreknow.elm.controller;

import com.foreknow.elm.po.Food;
import com.foreknow.elm.po.Orders;
import com.foreknow.elm.service.FoodService;
import com.foreknow.elm.service.OrdersService;
import com.foreknow.elm.service.impl.FoodServiceImpl;
import com.foreknow.elm.service.impl.OrdersServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class OrdersController {
    public Object listOrdersByUserId(HttpServletRequest request)throws Exception{
        String UserId = String.valueOf(request.getParameter("UserId"));
        OrdersService service = new OrdersServiceImpl();
        List<Orders> list = service.listOrdersByUserId(UserId);
        return list;
    }

}
